#include <iostream>
int main()
{       
        int i,n,a[20],s=0,k=0;
	float ma;
        std::cout<<"n=";std::cin>>n;
        for(i=0;i<n;i++)
                std::cin>>a[i];
        std::cout<<"Sirul este: ( ";
        for(i=0;i<n;i++)
                std::cout<<a[i]<<" ";
        std::cout<<")\nNoul sir: ( ";
	for(i=0;i<n;i++)       
        {
	        s=s+a[i];
		k=k+1;
		ma=s/k;
		std::cout<<ma<<" ";
	}
	std::cout<<")\n";
        return 0;
}

